﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using BLL;
using System.Web.Script.Serialization;
namespace Web
{
    public partial class ArticleDetailJson : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string id=this.Request["id"];   
            JavaScriptSerializer jss = new JavaScriptSerializer();
            Response.Write(jss.Serialize(ArticleBll.SelectOne(Convert.ToInt32(id))));
        }
    }
}